Lost in the Middle: How Language Models Use Long Contexts
multi-document question answering and key-value retrieval
We find that performance can degrade significantly when changing the position of relevant information
we observe that performance is often highest when relevant information occurs at the beginning or end of the input context, and significantly degrades when models must access relevant information in the middle of long contexts, even for explicitly long-context models.
U字型 U-shaped performance curve (Figure 1)
Figure 5